package com.suning.sawp.web.filter;

import java.security.Principal;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletRequestWrapper;
/**
 * 
 * 〈一句话功能简述〉<br> 
 * 〈功能详细描述〉
 *
 * @author 12061818
 * @see [相关类/方法]（可选）
 * @since [产品/模块版本] （可选）
 */
public class DjTokenRequestWraper extends HttpServletRequestWrapper {

    private Principal principal;
    
    public DjTokenRequestWraper(final HttpServletRequest request,
            final Principal principal) {
        super(request);
        this.principal = principal;
    }

    public Principal getUserPrincipal() {
        return (principal == null) ? null : principal;
    }
}
